package com.ziki.testmodulename;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

import com.ziki.expandable.ExpandableActivity;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {
    private static final String TAG = "TEST";
    private Button button1;
    private Button button2;
    private Button button3;
    private Button button4;
    private Button button5;
    private Button button6;
    private Button button7;
    private Button button8;
    private Button button9;
    private Button button11;
    private Button button12;
    private Button button13;

    private void assignViews() {
        button1 = (Button) findViewById(R.id.button1);
        button2 = (Button) findViewById(R.id.button2);
        button3 = (Button) findViewById(R.id.button3);
        button4 = (Button) findViewById(R.id.button4);
        button5 = (Button) findViewById(R.id.button5);
        button6 = (Button) findViewById(R.id.button6);
        button7 = (Button) findViewById(R.id.button7);
        button8 = (Button) findViewById(R.id.button8);
        button9 = (Button) findViewById(R.id.button9);
        button11 = (Button) findViewById(R.id.button11);
        button12 = (Button) findViewById(R.id.button12);
        button13 = (Button) findViewById(R.id.button13);

        button1.setOnClickListener(this);
        button2.setOnClickListener(this);
        button3.setOnClickListener(this);
        button4.setOnClickListener(this);
        button5.setOnClickListener(this);
        button6.setOnClickListener(this);
        button7.setOnClickListener(this);
        button8.setOnClickListener(this);
        button9.setOnClickListener(this);
        button11.setOnClickListener(this);
        button12.setOnClickListener(this);
        button13.setOnClickListener(this);

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        assignViews();
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
        case R.id.button1:
            // TODO implement
            Intent intent = new Intent();
            intent.setClass(MainActivity.this, ExpandableActivity.class);
            MainActivity.this.startActivity(intent);
            Log.d(TAG, "onClick: button1");
            break;
        case R.id.button2:
            // TODO implement
            break;
        case R.id.button3:
            // TODO implement
            break;
        case R.id.button4:
            // TODO implement
            break;
        case R.id.button5:
            // TODO implement
            break;
        case R.id.button6:
            // TODO implement
            break;
        case R.id.button7:
            // TODO implement
            break;
        case R.id.button8:
            // TODO implement
            break;
        case R.id.button9:
            // TODO implement
            break;
        case R.id.button11:
            // TODO implement
            break;
        case R.id.button12:
            // TODO implement
            break;
        case R.id.button13:
            // TODO implement
            break;
        }
    }
}
